#ifndef __BEEP_H__
#define __BEEP_H__

#include "main.h"
#include "tim.h"

#define BEEP_ON 0
#define BEEP_OFF 1

static inline void BEEP_Ctrl(uint8_t cmd)
{

  switch (cmd)
  {
  case BEEP_ON:
    HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_4);
    break;
  case BEEP_OFF:
    HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_4);
    break;
  default:
    break;
  }
}

#endif
